package cn.cdeden.knowledge.domain.dto;

////import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import jakarta.validation.constraints.Pattern;

/**
* @author Chen
* @date 2022-09-16
*/
@Data
public class TeamFilesTreeInsertParam {

//    @ApiModelProperty(value = "团队编号")
    private String teamId;
//    @ApiModelProperty(value = "父亲编号")
    private String parentId;
//    @ApiModelProperty(value = "文件名称")
    @Pattern(regexp = "^[^/\\\\\\:\\*\\?\\\"\\<\\>\\|\\\\]{1,216}$", message = "文件名称,不能用 `\\/:*?\"<>|` 作为文件名称,最长为216位")
    private String realName;

    public TeamFilesTreeInsertParam() {
    }

    public TeamFilesTreeInsertParam(String realName, String parentId, String teamId) {
        this.realName = realName;
        this.parentId = parentId;
        this.teamId = teamId;
    }
}
